package com.feng.eduservice.mapper;

import com.feng.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feng.eduservice.frontvo.CourseWebVo;
import com.feng.eduservice.vo.course.CoursePublishVo;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author fengge
 * @since 2023-01-17
 */
@Repository
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 根据课程id查询课程确认信息
     * @param courseId
     * @return
     */
    public CoursePublishVo getPublishCourseInfo(String courseId);

    /**
     * 前台根据课程id查询课程的详情信息
     * @param courseId
     * @return
     */
    public CourseWebVo getBaseCourseInfo(String courseId);
}
